Control Font Style Flag Constants
NEW WITH THE APPEARANCE MANAGER
You can pass one or more of these flag constants in theflags
field of the control font style structure to specify the field(s) of the structure that should be applied to the control. If none of the flags are set, the control uses the system font unless a control variant specifies use of a window font.
enum { kControlUseFontMask = 0x0001, kControlUseFaceMask = 0x0002, kControlUseSizeMask = 0x0004, kControlUseForeColorMask = 0x0008, kControlUseBackColorMask = 0x0010, kControlUseModeMask = 0x0020, kControlUseJustMask = 0x0040, kControlUseAllMask = 0x00FF, kControlAddFontSizeMask = 0x0100 };Constant descriptions
kControlUseFontMask
- If the
kControlUseFontMask
flag is set (bit 0), thefont
field of the control font style structure is applied to the control.kControlUseFaceMask
- If the
kControlUseFaceMask
flag is set (bit 1), thestyle
field of the control font style structure is applied to the control. This flag is ignored if you specify a meta font value; see "Meta Font Constants".kControlUseSizeMask
- If the
kControlUseSizeMask
flag is set (bit 2), thesize
field of the control font style structure is applied to the control. This flag is ignored if you specify a meta font value; see "Meta Font Constants".kControlUseForeColorMask
- If the
kControlUseForeColorMask
flag is set (bit 3), theforeColor
field of the control font style structure is applied to the control. This flag only applies to static text controls.kControlUseBackColorMask
- If the
kControlUseBackColorMask
flag is set (bit 4), thebackColor
field of the control font style structure is applied to the control. This flag only applies to static text controls.kControlUseModeMask
- If the
kControlUseModeMask
flag is set (bit 5), the text mode specified in themode
field of the control font style structure is applied to the control.kControlUseJustMask
- If the
kControlUseJustMask
flag is set (bit 6), thejust
field of the control font style structure is applied to the control.kControlUseAllMask
- If
kControlUseAllMask
is used, all flags in this mask will be set exceptkControlUseAddFontSizeMask
.kControlUseAddFontSizeMask
- If the
kControlUseAddFontSizeMask
flag is set (bit 8), the Dialog Manager will add a specified font size to thesize field of the control font style structure
. This flag is ignored if you specify a meta font value; see "Meta Font Constants".